import { AuthState } from "@/redux/interface";
import { createSlice } from "@reduxjs/toolkit"

const authState:AuthState = {
    authButtons: {},
    authRouter:[]
}

const authSlice = createSlice({
    name: "auth",
    initialState: authState,
    reducers: {
        setAuthButtons(state: AuthState, {payload}) {
            state.authButtons = payload
        },
        setAuthRouter(state: AuthState, {payload}) {
            state.authRouter = payload
        }
    }
})

export const {setAuthButtons, setAuthRouter} = authSlice.actions
export default authSlice.reducer